﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.Blog.Domain.OA
{
    public abstract class AbstractEntity
    {
        [Key,Required,DatabaseGenerated( DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        [Required]
        public int Status { get; set; }
        [Required]
        public int CreatorId { get; set; }
        [Required]
        public DateTime CreateTime { get; set; }
        public int LastModifierId { get; set; }
        public DateTime LastModifyTime { get; set; }
        [ConcurrencyCheck, Required]
        public byte[] TimeStamp { get; set; }
    }
}
